<?php
/**
 * Created by PhpStorm.
 * User: R.Ice
 * Date: 2018/8/23
 * Time: 14:43
 * name:新增机构ERP-企业组织架构
 * url:/erpEnterpriseStructure/add_enterprise_structure
 */

$oes_name   = $route->bodyParams['oes_name']; //节点名称
$oes_path   = $route->bodyParams['oes_path']; //节点路径
$oes_fid    = $route->bodyParams['oes_fid'];  //父节点ID
$oes_oesid  = $route->bodyParams['oes_oesid'];  //父节点ID
$oes_structure_name  = $route->bodyParams['oes_structure_name'];  //父节点ID
$oes_department  = $route->bodyParams['oes_department'];
$oes_is_root  = $route->bodyParams['oes_is_root'];

//写入数组
$insertArr = [
    'oes_name'   =>$oes_name,
    'oes_path'   =>$oes_path,
    'oes_fid'    =>$oes_fid,
    'oes_oesid'  =>$oes_oesid,
    'oes_structure_name'  =>$oes_structure_name,
    'oes_department'=>$oes_department,
    'oes_is_root'=>$oes_is_root
];
//执行写入语句
$rsData = $db->mysqlDB->insert("oa_enterprise_structure",$insertArr);

//返回成功结果
$response->responseData( true, $rsData );